package com.mall.controller;


import com.mall.pojo.ResponseMessage;
import com.mall.service.ILogisticsCompanyService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 物流公司表 前端控制器
 * </p>
 *
 * @author ShouPeng
 * @since 2023-04-16
 */
@RestController
@RequestMapping("/user/logisticsCompany")
@CrossOrigin
public class LogisticsCompanyController {
    final
    ILogisticsCompanyService companyService;

    public LogisticsCompanyController(ILogisticsCompanyService companyService) {
        this.companyService = companyService;
    }

    @GetMapping
    public ResponseMessage queryLogisticsCompany(){
        return ResponseMessage.success(companyService.queryLogisticsCompany());
    }

}

